<template>
  <div class="hello">
    <div class="top_head">
      <div class="imagheads">
        <img src="../assets/bg-title.png" alt="" />
      </div>
      <div class="topheaddiv">
        <div class="timebox">{{ moment().format("YYYY-MM-DD HH:mm:ss ") }}</div>
        <div class="titlebox">仙居智慧大屏</div>
      </div>
    </div>
    <div class="bodysbox">
      <div class="left_bodys">
        <div class="leftb_top">
          <dv-border-box-12>
            <div class="firstname">城镇街道指数比</div>
            <div class="charts">
              <Paicharts />
            </div>
          </dv-border-box-12>
        </div>
        <div class="leftb_top">
          <dv-border-box-12>
            <div class="firstname">广播有效指数</div>
            <div class="charts">
              <Paicharts2 />
            </div>
          </dv-border-box-12>


        </div>
     <div class="leftb_center">

      <dv-border-box-12>
            <div class="firstname">热门播放榜</div>
            <div class="charts">
              <Paicharts3 />
            </div>
          </dv-border-box-12>

     </div>
      </div>
      <div class="map_bodys">
        <div class="mapdates">
          <dv-border-box-12>
            <!-- <div class="firstname">热门活动榜</div> -->
            <div class="charts">
              <PaichartsMap />
            </div>
          </dv-border-box-12>

        </div>
<div class="map_last">
  <dv-border-box-12>
    <div class="firstname">热门2</div>
    <div class="lastmapbox">


      <div class="last_left">
    <Paicharts4 />

   
           
  </div>
  <div class="last_right">
    <Paicharts5 />

  </div>

    </div>

 

          </dv-border-box-12>

</div>

      </div>
      <div class="right_bodys">
        <dv-border-box-12>
        <div class="returnback">
    <div class="firstname marginbottom">消息播报</div>

          <dv-scroll-board :config="config" style="width:450px;height:750px" />

        </div>


        </dv-border-box-12>

      </div>
    </div>
  </div>
</template>

<script>
import moment from "moment";
import Paicharts from "./charts/paicharts.vue";
import Paicharts2 from "./charts/paicharts2.vue";
import Paicharts3 from "./charts/paicharts3.vue";
import Paicharts4 from "./charts/paicharts4.vue";
import Paicharts5 from "./charts/paicharts5.vue";

 
import PaichartsMap from "./charts/paichartsmap.vue"
export default {
  name: "HelloWorld",
  props: {
    msg: String,
  },
  data() {
    return {
      moment,
      config:{
        // header: ['列1', '列2', '列3'],
  data: [
    ['埠头镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['安岭乡广播即将播放', '播放时间', '2024/7/5 15:47:00'],
    ['广度乡广播即将播放', '播放时间', '2024/7/5 15:55:00'],
    ['白塔镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['朱溪镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['湫山乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['皤滩乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['埠头镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['上张乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['南峰街道广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['埠头镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['湫山乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['福应街道广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['双庙乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['朱溪镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['湫山乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['皤滩乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['埠头镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['上张乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['南峰街道广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['埠头镇广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['湫山乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['福应街道广播即将播放', '播放时间', '2024/7/5 15:45:00'],
    ['双庙乡广播即将播放', '播放时间', '2024/7/5 15:45:00'],
   
  ],
  index: false,
  columnWidth: [200,100,200],
  align: ['center']
      }
    };
  },
  components: {
    Paicharts,
    Paicharts2,
    Paicharts3,
    PaichartsMap,
    Paicharts4,
    Paicharts5
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.hello {
  background: #324252;
  width: 1980px;
  height: 1020px;
  overflow: hidden;
}
.top_head {
  // margin-top: 10px;
  height: 120px;
  width: 100%;
  position: relative;
  // background: url(../assets/bg-title.png) no-repeat 100% 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #fff;
  .imagheads {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }
  .topheaddiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    position: absolute;
    top: 0;

    // justif
    .titlebox {
      font-size: 60px;
      width: 560px;
      height: 80px;
      text-align: center;
      // padding-top:10px;
      letter-spacing: 13px;
      font-family: "PangMenZhengDao";
    }
    .timebox {
      width: 680px;
      text-align: center;
      font-weight: 600;
      line-height: 88px;
    }
  }
}
.bodysbox {
  display: flex;
  flex-direction: row;
  padding: 0 15px;
  .left_bodys {
    width: 650px;
    // background: yellow;
    height: 900px;
    .leftb_top {
      height: 250px;
      margin-bottom: 10px;
      // background: red;
    }
    .leftb_center{
      height: 350px; 
    }
  }
}

.map_bodys{
  width: 800px;
  .mapdates{
    height: 650px;

  }
  .map_last{
    height:220px ;
    display: flex;
    flex-direction: row;
    .last_left{
      width: 400px;
    }
    .last_right{
      width: 350px;
    }
  }
}
.lastmapbox{
  display: flex;
  flex-direction: row;
}
.right_bodys{
  width: 500px;
  height: 870px;
}
@font-face {
  font-family: "PangMenZhengDao";
  src: url("../assets/font/pmzd.ttf");
  font-weight: normal;
  font-style: normal;
}
.firstname {
  padding: 10px 0;
  font-size: 18px;
}
.returnback{
  padding: 25px;
}
.marginbottom{
  margin-bottom: 10px;
}
</style>  
